//
//  WBUserModel.swift
//  WeiboTen
//
//  Created by ItHeiMa on 2017/7/10.
//  Copyright © 2017年 itHeima. All rights reserved.
//

import UIKit

class WBUserModel: NSObject {
    /// 用户id
    var id: String?
    
    /// 用户的昵称
    var screen_name: String?
    
    /// 用户头像
    var avatar_large: String?
    
    /// 用户的皇冠的等级 从1到6
    var mbrank: Int = 0
    
    /// 用户vip的信息: 0代表达人, 2, 3, 5代表企业达人, 220代表草根达人
    var verified_type: Int = -1
    
    /// 在swift中description是一个计算属性，类似oc中的只读属性
    override var description: String {
        let modelDic = dictionaryWithValues(forKeys: ["id", "screen_name", "avatar_large", "mbrank", "verified_type"])
        return modelDic.description
    }
}
